<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style media="screen">
    *{
      padding:0;
      margin:0;
    }
    #hd{
      width: 80%;
      height: 600px;
      border: 3px solid blue;
      margin: 0 auto;
      display: flex;
      /*定义项目在容器主轴上的排列方式*/
      justify-content: space-between;
      /*定义元素在交叉轴的排列方式*/
      /*align-items: center;*/
      align-items: flex-end;
    }
    #hd div{
      width: 120px;
      height: 300px;
      background: orange;
      border: 1px solid green;
    }
  </style>
</head>
<body>

  <div id="hd">
    <div style="height:200px;">1</div>
    <div style="height:160px;">2</div>
    <div style="height:270px;">3</div>
    <div style="height:300px;">4</div>
    <div style="height:210px;">5</div>
    <div style="height:100px;">6</div>
    <div style="height:290px;">7</div>
  </div>


</body>
</html>
